package com.ning.ems.exception;

import org.springframework.http.HttpStatus;

/**
 * @author Ning 242741154@qq.com
 * @date 2020/5/26 16:03
 */
public class ServiceException extends RuntimeException {
    public final HttpStatus status;
    public final String message;

    public ServiceException(String message) {
        this(HttpStatus.BAD_REQUEST, message);
    }

    public ServiceException(HttpStatus status, String message) {
        this.status = status;
        this.message = message;
    }
}
